package com.richpencil.utils;
public class uHtml {
	
	public static String getSelectOptions(String values, String names) throws Exception
	{
		String[] valueary=values.split(",");
		String[] nameary=names.split(",");
		if(valueary.length!=nameary.length)
		{
			throw new java.lang.Exception("values length not equal names length");
		}
		String result = "";
		for(int i=0;i<valueary.length;i++)
		{
			String value=valueary[i];
			String name=nameary[i];
			result += "<option value='"+value+"' >"+name+"</option>";
		}
		return result;
	}
}
